<?php
declare (strict_types = 1);

namespace app\api\controller\v1;

use app\BaseController;

/**
 * API控制器基础类
 */
class Api extends BaseController
{

    /**
     * 接口请求统一返回
     * @param $code int 响应状态码
     * @param $message string 响应信息
     * @param $data array 响应的数据
     */
    public function return_msg($code = 200, $message = '',$data = null, $count = 0)
    {
        return api_response($code, $message,$data, $count);
    }
}